package com.iflytek.sbd.controller;

import com.iflytek.sbd.po.Cache;
import com.iflytek.sbd.annotation.ParameterCheck;
import com.iflytek.sbd.vo.RecipeCountryDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @program: sbd
 * @description:
 * @author: 陈英俊
 * @create: 2021-12-23 15:19
 */
@Api(tags = "切面测试demo--废弃")
@RestController
@RequestMapping("/demo")
public class DemoController {


    @Autowired
    private Cache cache;


    @ApiOperation(value = "demo测试")
    @PostMapping("/demo1")
    public String getDemo1(@RequestBody List<RecipeCountryDTO> recipeCountryDTO) {
        System.out.println(recipeCountryDTO.get(0).getValidTimeFrom());
        return "sss";
    }


    @GetMapping("/demo2")
    public String getDemo2(@ParameterCheck String name) {
        return "name";
    }



}
